package com.orange.base.component.biztool.simulateddata.service.impl;

import java.util.Map;

import com.orange.base.component.biztool.simulateddata.service.SimulatedDataEnum;
import com.orange.base.component.biztool.simulateddata.service.SimulatedDataParam;

/**
 * 成语
 * 
 * { "derivation": "语出《法华经·法师功德品》下至阿鼻地狱。”", "example":
 * "但也有少数意志薄弱的……逐步上当，终至堕入～。★《上饶集中营·炼狱杂记》", "explanation":
 * "阿鼻梵语的译音，意译为无间”，即痛苦无有间断之意。常用来比喻黑暗的社会和严酷的牢狱。又比喻无法摆脱的极其痛苦的境地。", "pinyin": "ā bí
 * dì yù", "word": "阿鼻地狱", "abbreviation": "abdy" }
 * 
 * @date 2021-01-13
 * @author biankudingcha
 * @since
 *
 */
public class IdiomStrategy extends AbstractWord {

    public String getType() {
        return SimulatedDataEnum.IDIOM.getName();
    }

    public String getCaption() {
        return SimulatedDataEnum.IDIOM.getCaption();
    }

    @Override
    public Object getValue(SimulatedDataParam param) {
        return generate(param);
    }

    public String getWord() {
        Map<String, Object> data = getData();
        return (String) data.get("word");
    }

    public String getFileName() {
        return "idiom.json";
    }

}
